<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动画效果</title>
    <script src="../res/jquery-3.7.1.min.js"></script>
    <script>
        $(function(){
            $("#btn1").click(function(){
                $("#demo").hide();
            })

            $("#btn2").click(function(){
                $("#demo").show();
            })
        });
    </script>
</head>
<body>
    <button id="btn1">隐藏</button>
    <button id="btn2">显示</button>
    <button id="btn3">淡入</button>
    <button id="btn4">淡出</button>
    <button id="btn4">滑上</button>
    <button id="btn4">滑下</button>
    <button id="btn4">自定义</button>
    <div id="demo">测试div</div>
</body>
</html>